package com.xuebusi.xpress.front;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping
public class IndexController {

    @RequestMapping
    public String index(Model model) {
        model.addAttribute("siteTile", "网站前台首页标题");
        model.addAttribute("siteContent", "网站前台首页内容");
        return "index";
    }

    @RequestMapping(value = "/about")
    public String about(Model model) {
        return "about";
    }

    @RequestMapping(value = "/connect")
    public String connect(Model model) {
        return "connect";
    }

    @RequestMapping(value = "/news")
    public String news(Model model) {
        return "news";
    }

    @RequestMapping(value = "/shownews")
    public String shownews(Model model) {
        return "shownews";
    }

    @RequestMapping(value = "/img")
    public String img(Model model) {
        return "img";
    }

    @RequestMapping(value = "/showimg")
    public String showimg(Model model) {
        return "showimg";
    }
}
